﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGame.Networking
{
    enum ClientServerNet
    {
        None = 0x00,
        NetTest = 0x01,
        GlobalChat = 0x02,
        DatabaseRequest = 0x03,
        WorldRequest = 0x04,
        WorldPulseRequest = 0x05,

        EntityCreateRequest = 0x06,
        EntitiespawnRequest = 0x07,
        EntityMoveRequest = 0x08,
        EntityTurnRequest = 0x09,
        EntityTintRequest = 0x0a,
        EntityTextureRequest = 0x0b,
        EntityOwnerRequest = 0x0c,

        ResoucesCountRequest = 0x0d,

        GetMessageRequest = 0x0e,
        SendMessageRequest = 0x0f,
        ListMessageRequest = 0x10,

        ScriptedPacket = 0x11
    }

    enum ServerClientNet
    {
        None = 0x00,
        NetTest = 0x01,
        GlobalAnounce = 0x02,
        ChangeToken = 0x03,
        WorldResponce = 0x04,
        PrivateChat = 0x05,

        EntityCreate = 0x06,
        EntityUpdateVisual = 0x07,
        EntityTeleport = 0x08,

        ScriptedPacket = 0x09
    }

    enum DatabaseCommands
    {
        GetKey = 0,
        SetKey = 1,
        AddValue = 2,
        GetAllKeys = 3
    }
}
